<div ng-controller="gSearchCtrl">
  <div class="" ng-class="{'ovh': isViewDetail==true}">


  <div class="g-search">
    <div class="gs-i-box">
        <input type="text" class="gs-input" ng-model="searchParams.keyWords" value="" placeholder="{{searchParams.placeholder}}" style="width:5rem;margin-right:0.1rem;">
        <a href="javascript:;" class="btn-do-search" ng-click="doSearch();">搜索</a>
    </div>
  </div>
  <div class="search-cat">
    <h1>在分类中搜索</h1>
    <ul class="clearfix">
      <!-- <li><a href="javascript:;" ng-class="{cur: searchParams.type === '66'}" ng-click="changeSearchType('66', '外贸资讯');">外贸资讯</a></li> -->
      <!-- <li><a href="javascript:;" ng-class="{cur: searchParams.type === '15'}" ng-click="changeSearchType('15', '外贸预警');">外贸预警</a></li> -->
      <li><a href="javascript:;" ng-class="{cur: searchParams.type === '5'}" ng-click="changeSearchType('5', '预警信息');">预警信息</a></li>
      <li><a href="javascript:;" ng-class="{cur: searchParams.type === '2'}" ng-click="changeSearchType('2', '预警快报');">预警快报</a></li>
      <li><a href="javascript:;" ng-class="{cur: searchParams.type === '3'}" ng-click="changeSearchType('3', '典型案例');">典型案例</a></li>
      <li><a href="javascript:;" ng-class="{cur: searchParams.type === '7'}" ng-click="changeSearchType('7', '预警交流');">预警交流</a></li>
      <!-- <li><a href="javascript:;" ng-class="{cur: searchParams.type === '73'}" ng-click="changeSearchType('73', '项目公示');">项目公示</a></li> -->
      <!-- <li><a href="javascript:;" ng-class="{cur: searchParams.type === 'hz'}" ng-click="changeSearchType('hz', '会展服务');">会展服务</a></li> -->
      <!-- <li><a href="javascript:;" ng-class="{cur: searchParams.type === 'px'}" ng-click="changeSearchType('px', '外贸培训');">外贸培训</a></li> -->
    </ul>
  </div>

  <div class="list-box" style="min-height:8rem;">
    <div class="list-loading" ng-show="loading"></div>
    <ul class="n-list" ng-hide="loading">
      <li class="clearfix" ng-repeat="i in searchRsLists">
        <!-- <a ui-sref="g.detail({id: i.id})" class="clearfix i-block"> -->
        <a ng-click="viewDetail(i.id)" class="clearfix i-block">
          <h2 ng-bind="i.title" class="n-list-title text-overflow-2"></h2>
          <img ng-src="{{i.thumbnail}}" ng-if="i.thumbnail" class="n-list-big-thumbnail">
          <p class="n-list-time">{{i.addTime.year}}-{{i.addTime.monthValue}}-{{i.addTime.dayOfMonth}}</p>
        </a>
      </li>
    </ul>
  </div>
</div>

  <!--详情-->
  <div class="fixed-detail" ng-if="isViewDetail===true">
    <div ng-controller="gDetailCtrl">
        <div class="list-loading" ng-show="detailData.loading"></div>
        <div class="a-detail" ng-show="!detailData.loading">
          <h1 class="a-d-title" ng-bind="detailData.title"></h1>
          <div class="a-d-info">
            <!-- <span ng-bind="{{utils.formatDate(detailData.createTimestamp,'%Y-%M-%d')}}" class="mr-20"></span> -->
            <span  class="mr-20">{{detailData.addTime.year}}-{{detailData.addTime.monthValue}}-{{detailData.addTime.dayOfMonth}}</span>
            <span ng-bind="detailData.source"></span>
          </div>
          <div class="a-d-content" ng-bind-html="detailData.contents" class="n-list-desc text-overflow-2"></div>
        </div>
      <div class="back-bar">
        <a href="javascript:;" class="back-btn" ng-click="goBack();"></a>
      </div>
    </div>
  </div>
</div>
